package com.sinosoft.cloud.access.handler;

import com.sinosoft.cloud.access.net.MessageObject;
import io.netty.channel.ChannelHandlerContext;

/**
 * cloud-netty
 *
 * @title: cloud-netty
 * @package: com.sinosoft.cloud.access.handler
 * @author: yangming
 * @date: 2017/12/4 下午6:31
 */
public class CompleteHandler extends AbstractHandler {
    @Override
    MessageObject dealMessage(ChannelHandlerContext ctx, MessageObject messageObject) {
//        messageObject.setFinish(true);
        messageObject.setNext(MessageObject.Type.writeAndFlush);
        return messageObject;
    }
}
